
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

import javax.mail.MessagingException;

import com.sun.org.apache.bcel.internal.generic.LUSHR;

import de.fhb.itunes.controller.web.index_content;
import de.fhb.itunes.manager.filewatcher.OrdnerUebweachung;
import de.fhb.itunes.manager.filewatcher.index_player_xml;
import de.fhb.itunes.manager.mail.*;
import de.fhb.itunes.manager.mail.Template.HTML_Templates;
import de.fhb.itunes.manager.mail.Template.Template;
import de.fhb.itunes.manager.mail.Template.TemplateBuilder;
import de.fhb.itunes.repository.DataAccess.DAO_Album;
import de.fhb.itunes.repository.DataAccess.DAO_Episode;
import de.fhb.itunes.repository.DataAccess.DAO_Film;
import de.fhb.itunes.repository.DataAccess.DAO_Musik;
import de.fhb.itunes.repository.DataAccess.DAO_TvSendung;
import de.fhb.itunes.repository.DataAccess.IDAO_Album;
import de.fhb.itunes.repository.DataAccess.IDAO_Episode;
import de.fhb.itunes.repository.DataAccess.IDAO_Film;
import de.fhb.itunes.repository.DataAccess.IDAO_Musik;
import de.fhb.itunes.repository.DataAccess.IDAO_TvSendung;
import de.fhb.itunes.repository.data.Album_VO;
import de.fhb.itunes.repository.data.Episode_VO;
import de.fhb.itunes.repository.data.Film_VO;
import de.fhb.itunes.repository.data.Musik_VO;
import de.fhb.itunes.repository.data.TvSendung_VO;

public class Start {

	/**
	 * @param args
	 * @throws MessagingException
	 * @throws IOException
	 * @throws URISyntaxException 
	 */
	public static void main(String[] args) throws MessagingException,
			IOException, URISyntaxException {
		index_player_xml xmlwriter = new index_player_xml();
		xmlwriter.checkDir();

	}

	public static void listeausgeben(LinkedList<Film_VO> filme) {
		for (Film_VO film : filme) {
			System.out.println(film.getTitel());
		}
	}

	public static void listeausgeben(List<Episode_VO> episoden) {
		for (Episode_VO epi : episoden) {
			System.out.println(epi.getTitel());
		}
	}

	public static void listeausgebenTV(List<TvSendung_VO> tvs) {
		for (TvSendung_VO tv : tvs) {
			System.out.println(tv.getStaffelname() + " : "
					+ tv.getStaffelnummer());
			for (Episode_VO episoden : tv.getEpisoden().values()) {
				System.out.println("\t" + episoden.getEpisodennummer() + ":"
						+ episoden.getTitel());
			}
		}
	}

}
